package com.df.web.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by DFx on 2016/9/21.
 */
@FeignClient("tomcat-test")
@RequestMapping(path = "/testService", method = RequestMethod.POST)
public interface TestService {
    @RequestMapping(path = "/hi", method = RequestMethod.POST)
    String hi();

    @RequestMapping(path = "/getMsg", method = RequestMethod.POST)
    String getMsg();

    @RequestMapping(path = "/getTra", method = RequestMethod.TRACE)
    String getTra();

    @RequestMapping(path = "/getOpt", method = RequestMethod.OPTIONS)
    String getOpt();

    @RequestMapping(path = "/getUserModel", method = RequestMethod.POST)
    Long getUserModel(@RequestParam("id") int id);


    @RequestMapping(value = "/testSave", method = RequestMethod.POST)
    Long testSave();

}
